package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTVendor implements java.io.Serializable {
		/**
		 * pk
		 * 供应商编码
		 **/
		String vendorCode;
		/**
		 * 状态1:可用；0：停用
		 **/
		String status;
		/**
		 * 所属机构
		 **/
		private Long deptId;
		private VDepartment dept;
		/**
		 * 名称
		 **/
		String name;
		/**
		 * 地址
		 **/
		String addr;
		/**
		 * 邮编
		 **/
		String postcode;
		/**
		 * 纳税登记号
		 **/
		String regCode;
		/**
		 * 开户行
		 **/
		String bank;
		/**
		 * 开户行帐号
		 **/
		String account;
		/**
		 * 发展日期
		 **/
		Date deveDate;
		/**
		 * 法人
		 **/
		String corporation;
		/**
		 * 传真
		 **/
		String fax;
		/**
		 * 电话
		 **/
		String tel;
		/**
		 * 电子邮箱
		 **/
		String email;
		/**
		 * 手机
		 **/
		String linkmanMobile;
		/**
		 * 联系人
		 **/
		String contact;
		/**
		 * 创建人
		 **/
		private VUser createUser;
		/**
		 * 创建日期
		 **/
		Date createDate;
		/**
		 * 修改人
		 **/
		private VUser modiUser;
		/**
		 * 修改日期
		 **/
		Date modiDate;
		/**
		 * 备注
		 **/
		String note;
	
	public EmpTVendor(){
	}
	
		public String getVendorCode(){
			return this.vendorCode;
		}		
		public void setVendorCode(String vendorCode){
			this.vendorCode = vendorCode;
		}
		public String getName(){
			return this.name;
		}		
		public void setName(String name){
			this.name = name;
		}
		public String getAddr(){
			return this.addr;
		}		
		public void setAddr(String addr){
			this.addr = addr;
		}
		public String getPostcode(){
			return this.postcode;
		}		
		public void setPostcode(String postcode){
			this.postcode = postcode;
		}
		public String getRegCode(){
			return this.regCode;
		}		
		public void setRegCode(String regCode){
			this.regCode = regCode;
		}
		public String getBank(){
			return this.bank;
		}		
		public void setBank(String bank){
			this.bank = bank;
		}
		public String getAccount(){
			return this.account;
		}		
		public void setAccount(String account){
			this.account = account;
		}
		public Date getDeveDate(){
			return this.deveDate;
		}		
		public void setDeveDate(Date deveDate){
			this.deveDate = deveDate;
		}
		public String getCorporation(){
			return this.corporation;
		}		
		public void setCorporation(String corporation){
			this.corporation = corporation;
		}
		public String getFax(){
			return this.fax;
		}		
		public void setFax(String fax){
			this.fax = fax;
		}
		public String getTel(){
			return this.tel;
		}		
		public void setTel(String tel){
			this.tel = tel;
		}
		public String getEmail(){
			return this.email;
		}		
		public void setEmail(String email){
			this.email = email;
		}
		public String getLinkmanMobile(){
			return this.linkmanMobile;
		}		
		public void setLinkmanMobile(String linkmanMobile){
			this.linkmanMobile = linkmanMobile;
		}
		public String getContact(){
			return this.contact;
		}		
		public void setContact(String contact){
			this.contact = contact;
		}

		public Date getCreateDate(){
			return this.createDate;
		}		
		public void setCreateDate(Date createDate){
			this.createDate = createDate;
		}

		public Date getModiDate(){
			return this.modiDate;
		}		
		public void setModiDate(Date modiDate){
			this.modiDate = modiDate;
		}
		public String getNote(){
			return this.note;
		}		
		public void setNote(String note){
			this.note = note;
		}
		
		public Long getDeptId() {
			return deptId;
		}

		public void setDeptId(Long deptId) {
			this.deptId = deptId;
		}

		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

		public VUser getCreateUser() {
			return createUser;
		}

		public void setCreateUser(VUser createUser) {
			this.createUser = createUser;
		}

		public VUser getModiUser() {
			return modiUser;
		}

		public void setModiUser(VUser modiUser) {
			this.modiUser = modiUser;
		}
		
		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public String getStatusStr(){
			if(this.status.equals("1"))
				return "启用";
			else
				return "停用";
		}
		public String getDeveDateStr(){
			return DateUtil.dateToString(this.deveDate,DateUtil.patternA);
		}
		public String getCreateDateStr(){
			return DateUtil.dateToString(this.createDate,DateUtil.patternE);
		}
		public String getModiDateStr(){
			return DateUtil.dateToString(this.modiDate,DateUtil.patternA);
		}
	
}